#ifndef CLIENTPLAYERMANAGER_H
#define CLIENTPLAYERMANAGER_H

#include "Singleton.h"
#include "ClientInfo.h"

#include <vector>
#include <map>

class ClientPlayerManager : public Uncopyable
{
	ClientPlayerManager();
	friend class Singleton<ClientPlayerManager>;
public:
	void Update();
	void Draw();

	void AddClient(int id, ClientInfo info);

	void SetClientPos(int id, const D3DXVECTOR3& pos);
	D3DXVECTOR3 GetClientPos(int id) const;
	void SetClientVel(int id, const D3DXVECTOR3& vel);
	D3DXVECTOR3 GetClientVel(int id) const;

private:
	std::map<int, ClientInfo> m_clients;
};

typedef Singleton<ClientPlayerManager> TheCPManager;

#endif //CLIENTPLAYERMANAGER_H